//
//  SASalesOrderViewListModel.h
//  Saas
//
//  Created by bing on 2020/2/27.
//  Copyright © 2020 bing. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@class SASalesOrderColoursList,SASalesOrderSizesList,SASalesOrderToPendSkuList;

@interface SASalesOrderViewListModel : NSObject

@property (nonatomic, strong) NSMutableArray <SASalesOrderColoursList *>*colours;
@property (nonatomic,strong) NSMutableArray <SASalesOrderSizesList *>*sizes;
@property (nonatomic, copy) NSString *img;
@property (nonatomic, strong) NSArray *imgList;
@property (nonatomic, copy) NSString *merchantPrice;
@property (nonatomic, copy) NSString *productCode;
@property (nonatomic, copy) NSString *productId;
@property (nonatomic, copy) NSString *productName;
@property (nonatomic, copy) NSString *retailPrice;
@property (nonatomic, copy) NSString *defaultPriceType;
@property (nonatomic, copy) NSString *entryPrice;
@property (nonatomic, copy) NSString *recentPrice;//最近价
@property (nonatomic, copy) NSString *codeId;
@property (nonatomic, copy) NSString *discountRate; //原始折扣

//数据返回的字段不一样，兼容处理
@property (nonatomic,strong) NSMutableArray <SASalesOrderToPendSkuList *>*toPendSkuAttrs;
@property (nonatomic,strong) NSMutableArray <SASalesOrderToPendSkuList *>*skuList;
@property (nonatomic,strong) NSMutableArray <SASalesOrderToPendSkuList *>*targetSkuList;

@property (nonatomic, copy) NSString *wholesalePrice;
@property (nonatomic, copy) NSString *defaultPrice;
@property (nonatomic, copy) NSString *pageNumber;

@property (nonatomic, copy) NSString *totalStock;

//前端记录商品折扣
@property (nonatomic, assign) double percentage;
@property (nonatomic, assign) double salePrice;
@property (nonatomic, assign) double activityPercentage;//记录开启活动，修改原始折扣
@property (nonatomic, assign) double activitySalePrice;//记录开启活动，修改原始价格
@property (nonatomic, strong) NSString *priceType; // -1 没有修改过
@property (nonatomic, assign) BOOL isWarehousing;//是否商品入库
@property (nonatomic, assign) double totalSalePrice;
@property (nonatomic, strong) NSString *singleSalePrice;
@property (nonatomic, assign) BOOL isNegative;
@property (nonatomic, assign) BOOL isGive;//是否赠品

//前端记录商品活动
@property (nonatomic, copy) NSString *activityId;//活动id
@property (nonatomic, assign) BOOL isOpenActivity;//是否参加活动
@property (nonatomic, copy) NSString *discountType;//活动类型 0 满减 1打折
@property (nonatomic, copy) NSString *activityPriceType;//价格类型 0 原价 1折扣价
@property (nonatomic, copy) NSString *memberDiscountStacking;//会员是否折上折 1 折上折
@property (nonatomic, assign) double originalTotalSalePrice;//原始商品总价
@property (nonatomic, assign) double originalTotalDiscountPrice;//商品折扣总价
@property (nonatomic, assign) NSInteger totalCount;//商品总数量
@property (nonatomic, assign) NSInteger activityTotalCount;//活动商品总数量（不包含赠送的商品数量）
@property (nonatomic, copy) NSString *activityName;//显示的活动名称
@property (nonatomic, copy) NSString *activityTitle;//显示的活动标题

@end

@interface SASalesOrderColoursList : NSObject

@property (nonatomic, copy) NSString *attrId;
@property (nonatomic, copy) NSString *attrName;

@property (nonatomic, assign) BOOL isSelecd;//只做本地数据处理
@property (nonatomic, copy) NSString *num;//只做本地数据处理

@end

@interface SASalesOrderSizesList : NSObject

@property (nonatomic, copy) NSString *attrId;
@property (nonatomic, copy) NSString *attrName;

@end

@interface SASalesOrderToPendSkuList : NSObject

@property (nonatomic, copy) NSString *backCount;
@property (nonatomic, copy) NSString *colourId;
@property (nonatomic, copy) NSString *colourName;
@property (nonatomic, copy) NSString *count;//库存量
@property (nonatomic, copy) NSString *price;
@property (nonatomic, copy) NSString *sizeId;
@property (nonatomic, copy) NSString *sizeName;
@property (nonatomic, copy) NSString *skuId;
@property (nonatomic, copy) NSString *stock;//输入的数量

@property (nonatomic, copy) NSString *subtotal;

@property (nonatomic, copy) NSString *remark;//备注
@property (nonatomic, copy) NSString *lastReplenishTime;//该客户该sku的最后一次拿货日期
@property (nonatomic, copy) NSString *replenishCount;//该客户该sku的拿货次数
@property (nonatomic, copy) NSString *replenishType;//标识类型，0-无标识，1-补货，2-补货退货，3-超退
@property (nonatomic, copy) NSString *overdueDays;//退货超期多少天（仅当标识类型为3时采用）

//不能使用的参数
@property (nonatomic, assign) BOOL isSelecd;
@property (nonatomic, assign) NSInteger type;//0入库 1退货
@property (nonatomic, copy) NSString *inventoryCount;//后端返回的接口有 count stock 两种，现在统一为库存数，需要自己赋值
@property (nonatomic, assign) BOOL noPirce;//没有输入价格

@end

NS_ASSUME_NONNULL_END
